package cn.moningxi.service;


import cn.moningxi.bean.OShopCart;

import java.util.List;

public interface OShopCartService {

    Integer removeShopCart(Integer shopCartId);

    List<OShopCart> queryShopCartList(String customerId);

    OShopCart queryShopCartByGoodsId(String goodsId);

    Integer insertShopCart(OShopCart oShopCart);

    Integer updateShopCartAmount(OShopCart oShopCart);

    OShopCart queryShopCartByGoodsIdAndCid(String goodsId, String customerId);

    /**
     * 根据购物车id查询购物车信息
     *
     * @param shopCartId
     * @return
     */
    OShopCart queryShopCartById(Long shopCartId);

    Integer updateShopCartAmount1(Integer shopCartId, Integer amount);
}
